package com.cloudRestudy.customer.feign;

import com.cloudRestudy.common.core.result.R;
import org.springframework.stereotype.Component;

/**
 * @ClassName : RemoteFallBack
 * @Author : lby
 * @Date: 2021/7/31 11:01
 * @Description : feign 统一服务降级处理
 */
@Component
public class RemoteFallBack implements RemoteHystrixService {
    @Override
    public R getSuccessMsg() {
        return R.failed("服务降级");
    }

    @Override
    public R getErrorMsg() {
        return R.failed("服务降级");
    }
}
